Skip to content

Conversation

@fern-api
Copy link
Contributor

@fern-api fern-api bot commented Feb 10, 2026

Updated the construe upload code system API to streamline the interface and improve usability. The API now returns 202 immediately with embedding generation running asynchronously, requiring users to poll the status endpoint to check completion.

Key changes:

  • Simplified uploadCodeSystem API interface with required format parameter and optional file/column parameters
  • Updated API to return 202 immediately with asynchronous processing behavior
  • Removed user_id fields from all template types across agent, fhir provider, summary, tools, and workflow modules
  • Reorganized construe upload request types from discriminated union to single interface
  • Updated documentation to reflect asynchronous processing workflow
  • Modified test cases to match new simplified API interface

🌿 Generated with Fern


Note

Medium Risk
Introduces breaking type and behavior changes to the code-system upload flow (async processing/polling and request/response shape changes) and removes fields from multiple public response types, which may require downstream consumer updates.

Overview
Breaking SDK update to v6.0.0 that changes construe.uploadCodeSystem to a simplified UploadRequest interface (single shape with required format and optional file/column fields) and updates docs/examples to reflect async embedding generation where callers must poll GET /construe/codes/systems/{codesystem} for completion.

Removes user_id from various returned/template types across agent, fhirProvider, summary, tools (MCP server/tool), and workflows, updates upload response shape to include name/version, deletes the older discriminated-union upload request types, and adjusts wire tests accordingly.

Written by Cursor Bugbot for commit d7d4404. This will update automatically on new commits. Configure here.

Updated the construe upload code system API to streamline the interface and improve usability. The API now returns 202 immediately with embedding generation running asynchronously, requiring users to poll the status endpoint to check completion.

Key changes:
- Simplified uploadCodeSystem API interface with required format parameter and optional file/column parameters
- Updated API to return 202 immediately with asynchronous processing behavior
- Removed user_id fields from all template types across agent, fhir provider, summary, tools, and workflow modules
- Reorganized construe upload request types from discriminated union to single interface
- Updated documentation to reflect asynchronous processing workflow
- Modified test cases to match new simplified API interface

🌿 Generated with Fern
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

file: "file",
code_col: "code",
desc_col: "description",
};
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test mocks 200 instead of documented 202 status

Low Severity

The success test for uploadCodeSystem mocks .statusCode(200), but the documentation, the client JSDoc, and the PR description all state the API now returns 202 immediately for async processing. The response body was correctly updated to { status: "processing", ... } reflecting async behavior, but the HTTP status code was not updated to match. While the SDK's fetcher treats all 2xx as success so this doesn't cause a runtime failure, the test doesn't validate the actual production response code.

Fix in Cursor Fix in Web

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants